

<h1>Crear un nuevo Empleado</h1>

<div  class="area">
				<form action="" method="post" accept-charset="utf-8">
					<div class="split">
						<div class="split" style="width:30%; padding-left:15px;">
							<label>IdEmpleado:</label>
						</div>
						<div class="split" style="width:70%;">

							<input name="idEmpleado" type="text"  required pattern="[A-Z]{2}[0-9]{5}" title="Los primeros dos digistos deben de ser: A-Z y lod demas cinco del: 0-9"  value="" size=20 maxlength="7" align="left">

						</div></br></br>
						
						 <div class="split" style="width:30%; padding-left:15px;">
							<label>Primer Nombre</label>
						</div>
						<div class="split" style="width:70%;">
							<input type="text" name="pnombre"  size=20 maxlength="15" required onkeypress="return soloLetras(event)" align="left">
						</div></br></br>
						
						 <div class="split" style="width:30%; padding-left:15px;">
							<label>Segundo nombre</label>
						</div>
						<div class="split" style="width:70%;">
							<input type="text" name="snombre"  size=20 maxlength="15" required onkeypress="return soloLetras(event)" align="left">
						</div></br></br>
						
						 <div class="split" style="width:30%; padding-left:15px;">
							<label>Primer Apellido</label>
						</div>
						<div class="split" style="width:70%;">
							<input type="text" name="papellido" maxlength="15" required onkeypress="return soloLetras(event)" size=20 align="left">
						</div></br></br>
						
						 <div class="split" style="width:30%; padding-left:15px;">
							<label>Segundo Apellido</label>
						</div>
						<div class="split" style="width:70%;">
							<input type="text" name="sapellido"  required maxlength="15" onkeypress="return soloLetras(event)" size=20 align="left">
						</div></br></br>
						</div>
						<div class="split">
                        <div class="split" style="width:30%; padding-left:15px;">
							<label>DUI</label>
						</div>
						<div class="split" style="width:70%;">
							<input type="text" name="dui" required maxlength="9" onkeypress="return justNumbers(event)" size=20 align="left">
						</div></br></br>
						
						 <div class="split" style="width:30%; padding-left:15px;">
							<label>Direccion</label>
						</div>
						<div class="split" style="width:70%;">
							<input type="text" name="direccion" required  size=49 align="left">
						</div></br></br>

                            <div class="split" style="width:30%; padding-left:15px;">
                                <label>Telefono Fijo</label>
                            </div>
                            <div class="split" style="width:70%;">
                                <input type="text" name="telefonofijo" maxlength="8" required placeholder="Al menos el de un contacto" onkeypress="return justNumbers(event)" size=25 align="left">
                            </div>
                            <div class="split" style="width:30%; padding-left:15px;">
                                <label>Celular</label>
                            </div>
                            <div class="split" style="width:70%;">
                                <input type="text" name="telefonocelular" maxlength="8" required placeholder="Al menos el de  un contacto" onkeypress="return justNumbers(event)" size=25 align="left">
                            </div>
                            <div class="split" style="width:40%; padding-left:15px;">
                                <label>Tipo de Rol</label>
                            </div>

                            <div class="split" style="width:40%;">
                                <select name="rol" size="1">
                                    <?php
                                  foreach($roles as $rol):?>
                                    <option value="<?php echo $rol[0]['idrol'];?>" ><?php echo $rol[0]['nombrerol'];?></option>

                                    <?php  endforeach;?>
                                </select>
                            </div>

                        <div class="split" style="width:40%; padding-left:15px;">
                            <label>Horas Contratadas</label>
                        </div>

                        <div class="split" style="width:40%;">
                            <select name="horacontratacion" size="1">
                                <?php
                       foreach($contrataciones as $con):  ?>
                                <option value="<?php echo $con[0]['idcategoria'];?>" ><?php echo $con[0]['nombre'];?></option>
                          <?php  endforeach;?>
                            </select>
                        </div>


                         <div class="split" style="width:40%; padding-left:15px;">
                                <label>Categoria Profesor</label>
                         </div>

                         <div class="split" style="width:40%;">
                                <select name="categoriaProfesor" size="1">
                                    <option value="PU1" >PU1</option>
                                    <option value="PU2" >PU2</option>
                                    <option value="PU3" >PU3</option>
                                </select>
                         </div>
                  </div>


                    <div class="split" style="width:40%;">
                        <div class="split" style="width:40%;">
							<input class="boton" type="submit" name="Agregar" value="Agrear Nuevo">
						</div>
					</div>
				</form>
			</div>    